package com.baidu.day5;

import java.util.ArrayList;

public class Demo04 {
    //集合的初体验,集合的类型是引用类型
    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        list.add("张三丰");
        list.add("张无忌");
        list.add("张翠山");
        //remove 集合的删除
        for (Object i : list) {
            System.out.println(i);
        }
        System.out.println("====================");
        list.remove(1);
        for (Object i : list) {
            System.out.println(i);
        }


    }


}
